import request from '@/utils/request'

// 仪表盘
export function getInstrument(params: any) {
  return request({
    url: '/v1/admin/dashboard',
    method: 'get',
    params: params
  })
}

// 商户报表
export function getMerchantReport(params: any) {
  return request({
    url: '/v1/report/getAgentTotalReport',
    method: 'get',
    params: params
  })
}

// 结算分成
export function settlementShare(data: any) {
  return request({
    url: '/v1/admin/changeReportStatus',
    method: 'post',
    data: data
  })
}

// API文档-获取总代信息
export function getOperatorInfo(params: any) {
  return request({
    url: '/v1/admin/system/getOperatorInfo',
    method: 'get',
    params: params
  })
}